package com.ys.entity.overseas;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TOS_ChannelStock", catalog="Id")
public class TosChannelStock extends BaseEntity<TosChannelStock> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="PurchaseCostAmount", nameJava="purchaseCostAmount", typeDataBase="decimal")
	private BigDecimal purchaseCostAmount;
	@YsField(nameDataBase="DeliveryCostAmount", nameJava="deliveryCostAmount", typeDataBase="decimal")
	private BigDecimal deliveryCostAmount;
	@YsField(nameDataBase="StockNum", nameJava="stockNum", typeDataBase="int")
	private Integer stockNum;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TosChannelStock setId(Long id) {
		this.id = id;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public TosChannelStock setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public BigDecimal getPurchaseCostAmount() {
		return purchaseCostAmount;
	}
	public TosChannelStock setPurchaseCostAmount(BigDecimal purchaseCostAmount) {
		this.purchaseCostAmount = purchaseCostAmount;
		return this;
	}
	public BigDecimal getDeliveryCostAmount() {
		return deliveryCostAmount;
	}
	public TosChannelStock setDeliveryCostAmount(BigDecimal deliveryCostAmount) {
		this.deliveryCostAmount = deliveryCostAmount;
		return this;
	}
	public Integer getStockNum() {
		return stockNum;
	}
	public TosChannelStock setStockNum(Integer stockNum) {
		this.stockNum = stockNum;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TosChannelStock setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TosChannelStock setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TosChannelStock setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TosChannelStock tosChannelStock(
		String productCode,
		BigDecimal purchaseCostAmount,
		BigDecimal deliveryCostAmount,
		Integer stockNum,
		Integer status
			) {
		TosChannelStock entity = new TosChannelStock();
		entity.setProductCode(productCode);
		entity.setPurchaseCostAmount(purchaseCostAmount);
		entity.setDeliveryCostAmount(deliveryCostAmount);
		entity.setStockNum(stockNum);
		entity.setStatus(status);
		return entity;
	}
}